import { createStore } from 'vuex'

export default createStore({
  state: {
    user: [],
    active: 0
  },
  getters: {
  },
  mutations: {
    changeActive(state, index) {
      state.active = index
    },
    uploadUser(state, value) {
      state.user = value
    },
  },
  actions: {
  },
  modules: {
  }
})
